#include"definition.h"

void getchoice(IMAGE* img_start, char(&nick_name)[50], graph g)
{
	laynickname(nick_name);
	while (true)
	{
		ExMessage msg;
		while (peekmessage(&msg, EM_MOUSE))
		{
			if (isinr(&msg, 96, 362, 302, 111) && msg.message == WM_LBUTTONUP)
			{
				putimage(0, 0, img_start + 3);
				laynickname(nick_name);
				show_record(img_start, nick_name, g);
			}
			else if (isinr(&msg, 96, 665, 302, 111) && msg.message == WM_LBUTTONUP)
			{
				putimage(0, 0, img_start + 9);
				laynickname(nick_name);
				mena_route(img_start, nick_name, g);
			}
			else if (isinr(&msg, 269, 514, 302, 111) && msg.message == WM_LBUTTONUP)
			{
				putimage(0, 0, img_start + 7);
				laynickname(nick_name);
				ask_route(img_start, nick_name, g);
			}
		}
	}

}